package com.guangzi.service.impl;

import com.guangzi.entity.Friend;
import com.guangzi.mapper.FriendDao;
import com.guangzi.service.AbstractService;
import com.guangzi.service.FriendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FriendServiceImpl extends AbstractService implements FriendService {


    private FriendDao friendDAO;

    @Autowired
    public void setFriendDAO(FriendDao friendDAO) {
        super.setBaseDAO(friendDAO);
        this.friendDAO = friendDAO;
    }

    @Override
    public List<Friend> listFriend() {
        return friendDAO.listFriend();
    }
}
